import { ReqImageUpload } from '../../types/jobs/images';
import fetch, { BaseResponse, RequestContentType } from '../index';

/**
 * 提交批改作业列表
 * @returns ResMenu
 */
export async function correctSaveImage(param: ReqImageUpload): Promise<BaseResponse<string>> {
  const { data } = await fetch.post<BaseResponse<string>>('/xuefu/oaphone/upload',
    { ...param },
    { contentType: RequestContentType.FORM_URLENCODED });
  return data;
}
